package cn.ehanghai.iot.common.security.constants;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "auth")
public class AuthConfig {

    private boolean sign;
    private List<String> tokenIgnoreUris = new ArrayList<>();
    private List<String> timestampIgnoreUris = new ArrayList<>();

    public boolean isSign() {
        return sign;
    }

    public List<String> getTokenIgnoreUris() {
        return tokenIgnoreUris;
    }

    public void setTokenIgnoreUris(List<String> tokenIgnoreUris) {
        this.tokenIgnoreUris = tokenIgnoreUris;
    }

    public List<String> getTimestampIgnoreUris() {
        return timestampIgnoreUris;
    }

    public void setTimestampIgnoreUris(List<String> timestampIgnoreUris) {
        this.timestampIgnoreUris = timestampIgnoreUris;
    }

    public void setSign(boolean sign) {
        this.sign = sign;
    }


}
